﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class InsuranceOrganization : BusinessObjectBase
    {
        private string _inn;
        private string _name;
        private Address _Address;
      
        public InsuranceOrganization()
        {
            this._Address = default(Address);
        }

        public InsuranceOrganization(int id, bool isDeleted, string inn, string name, Address address):base(id, isDeleted)
        {
            _inn = inn;
            _name = name;
            _Address = address;
        }

        public InsuranceOrganization(string inn, string name, Address address)
        {
            _inn = inn;
            _name = name;
            _Address = address;
        }

        public string Inn
        {
            get
            {
                return this._inn;
            }
            set
            {
                if ((this._inn != value))
                {
                    this._inn = value;
                }
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                if ((this._name != value))
                {
                    this._name = value;
                }
            }
        }
    
        public Address Address
        {
            get
            {
                return this._Address;
            }
            set
            {
                Address previousValue = this._Address;
                if (previousValue != value)
                {
                    this._Address = value;
                }
            }
        }

        
    }
	
}
